<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>Login</title>
</head>
<body>
<form action="/doLogin" method="post">
    <div>
        <label for="username">用户名：</label>
        <input type="text" id="username" name="username" required>
    </div>
    <div>
        <label for="password">密码：</label>
        <input type="password" id="password" name="password" required>
    </div>
    <button type="submit">登录</button>
    <div th:if="${param.error}" style="color: red;">
        登录失败，请检查用户名或密码！
    </div>
</form>
</body>
</html>